<table width="100%">
    <tr>
        <td align="right">
            {{ link_to("users/new", "Create") }}
        </td>
    </tr>
</table>

<table class="browse" align="center">
    <thead>
        <tr>
            <th>Id</th>
            <th>Email</th>
            <th>Name</th>
            <th>Role</th>
            <th>Blocked</th>
         </tr>
    </thead>
    <tbody>
        {% for user in page.items %}
        <tr>
            <td>{{ user.id }}</td>
            <td>{{ user.email }}</td>
            <td>{{ user.name }}</td>
            <td>{{ user.role }}</td>
            <td>{{ user.blocked }}</td>
            <td>{{ link_to('users/edit/' ~ user.id, '<i class="fa fa-pencil"></i>') }}</td>
            <td>{{ link_to('users/delete/' ~ user.id, '<i class="fa fa-trash"></i>') }}</td>
        </tr>
        {% endfor %}
    </tbody>
    <tbody>
        <tr>
            <td colspan="2" align="right">
                <table align="center">
                    <tr>
                        {{ pagination.generatePagination(page) }}
                    </tr>
                </table>
            </td>
        </tr>
    <tbody>
</table>
